<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑页</title>
    <link rel="stylesheet" href="../css/header.css" />
    <link rel="stylesheet" href="../css/reset.css" />
    <link rel="stylesheet" href="../css/edit.css">
    <link rel="stylesheet" href="../css/suspend.css">

    <script async src="../js/edit.js"></script>
</head>

<body onload="initData();updateQuestionList();">

    <div class="top">
    	<ul>
    		<li><img src="../img/Screenshot_1.png" width="120px"></li>
    		
    	</ul>
    </div>
	<div class="box" style="display: flex;">
		<div class="add" id="add">
			<div style="width: 200px;height: 50px;line-height: 50px;text-align: center;">
				<a href="01-1.html"><p style="display: block;width: 220px;height: 50px;line-height: 50px;text-align: center;color: #1E90FF;">首页</p></a>
			</div>
			<div class="view" onclick="createButton()">
			    <p style="display: block;width: 220px;height: 50px;line-height: 50px;text-align: center;color: #1E90FF;">添加问题</p>
			</div>
		    <div class="option close" id="add-option" style="height: 800px;">
				
		    </div>
		    
		</div>
		<div class="edit" style="flex-grow: 1;">
		    <div class="container page">
		        <div class="title">
		            <input type="text" id="title" placeholder="请输入标题">
		        </div>
		        <div id="question-list" style="width: 850px;height: 350px;overflow-y: auto;">
		
		        </div>
		        
		        <div class="bottom clearfix">
		            <div class="float-left">
		                问卷截止日期：<input type="date" name="" id="deadline" value="2020-12-10">
		            </div>
		            <div class="float-right">
		
		                <button onclick="saveQuestionare()">保存问卷</button>
		                <button class="pubquestionnaire" style="background-color: #1E90FF;color: #fff;">发布问卷</button>
		            </div>
		        </div>
		    </div>
		</div>
	</div>
    


    <div class="suspend-bg">
        <div class="suspend">

            <div class="suspend-head clearfix">
                <span class="float-left">提示</span>
                <button class="float-right cancel-btn"><i class="iconfont iconquxiao"></i></button>
            </div>

            <div class="suspend-text ">
                <span>是否发布问卷 ？</span>
                <span class="suspend-deadline" id="suspend-deadline"></span>
            </div>

            <div class="func clearfix">
                <div class="ensure float-left">
                    <button onclick="releaseQuestionare()">确定</button>
                </div>
                <div class="cancel float-right">
                    <button class="cancel-btn">取消</button>
                </div>
            </div>
        </div>
    </div>


</body>

</html>